<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>

</body>
</html>

<script>
	var in_data = prompt("请输入一个五位的整数");
	num = parseInt(in_data);
	var arr = [];
	while(num){
		arr.unshift(num%10);
		num = parseInt(num/10);

	}

	document.write("这是一个"+arr.length+"位数,每位数分别是："+arr);
</script>